<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta name="layout" content="main">
    <title>Create New Attribute</title>
  </head>
  <body>
    
   <g:hasErrors>
    <div class="errors">
      <g:renderErrors bean="${attribute}" as="list" />
    </div>
   </g:hasErrors>
    
    <h1>New Attribute</h1>
    <g:form action="createNew">
      <dl>
        <g:hiddenField name="facility.name" value="${facility?.name}"/>
        <dt>Name: </dt>
        <dd><g:textField name="name" value="${attribute?.name}"/></dd>
        <dt>Description: </dt>
        <dd><g:textArea id="attributeDescription" name="description" value="${attribute?.description}" width="1000px" height="1000px"/></dd>
      </dl>
      <br><g:submitButton name="create" value="Create"/></br>
    </g:form>
  </body>
</html>
